package cn.bdqn.service;

import cn.bdqn.mapper.HouseMapper;
import cn.bdqn.pojo.Houseinfo;
import cn.bdqn.pojo.Housetype;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HouseServiceImpl implements HouseService {

    @Resource
    private HouseMapper houseMapper;


    @Override
    public List<Houseinfo> sel() {
        return houseMapper.sel();
    }

    @Override
    public Integer ins(Houseinfo houseinfo) {
        return houseMapper.ins(houseinfo);
    }

    @Override
    public List<Housetype> housel() {
        return houseMapper.housel();
    }

    @Override
    public Houseinfo selinfo(Integer houseid) {
        return houseMapper.selinfo(houseid);
    }

    @Override
    public Integer upd(Houseinfo houseinfo) {
        return houseMapper.upd(houseinfo);
    }

    @Override
    public Integer del(Integer houseid) {
        return houseMapper.del(houseid);
    }

    @Override
    public List<Houseinfo> houselz(Integer typeid) {
        return houseMapper.houselz(typeid);
    }


}
